package com.somsoft.unlockme.fk;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Bitmap;
import android.graphics.Typeface;

import com.somsoft.unlockme.Page;
import com.somsoft.unlockme.db.Level;

public class C {
	public static final int MAX_LEVEL = 30;         //一共多少关
	public static final int JUMP_SCORE = 0;        //跳关所需积分
	
	public static boolean playMovie = false;        //播放过关动画
	public static int score = 0;                    //当前关卡得分
//	public static int totalScore;                   //目前总积分
	public static boolean moveable = true;          //是否可移动，过关后为false
	public static Level nextLevel;                  //下一关的信息
	public static List<Level> lvs;                  //当前要显示的关卡
	public static List<Page> pages = new ArrayList<Page>();
	public static List<Page> icons = new ArrayList<Page>(); //游戏界面的3个按钮
	public static String clickedBtn = "";           //游戏界面 点中的哪个按钮
	public static int currMoves = 0;                //当前移动步数
	public static int currLevel = 1;                //当前第几关
	public static int currPage = 1;                 //当前第几页
	public static int selectLevel = -1;             //当前选中的关卡
	public static boolean isGetLevel = false;               //是否重新获取关卡信息
	public static Typeface fontNumber ; 
	
	public static Bitmap background;                //定义背景画面
	public static Bitmap choose;                
	public static Bitmap fk90x90;                   //定义90x90的方块
	public static Bitmap fk90x180;                  //定义90x180的方块
	public static Bitmap fk180x90;                  //定义180x90的方块
	public static Bitmap fk180x180;                 //定义180x180的方块
	public static Bitmap star1,star2;               //实心、空心的星形
	
	public static int unit = 90;                    //一个单位的宽度
	public static float scaleScreen = 1;            //屏幕缩放比例（等比缩放）
	public static float scaleBitmap = 1;            //图片缩放比例（等比缩放）
	public static int width,height;
	public static int realWidth,realHeight;         //缩放后的实际宽高
	public static int leftKongBai,topKongBai;       //左边和上边的空白距离
	public static int startX,startY;                //第一个方块的起点坐标
	public static int successX,successY;            //过关的坐标
	
	//选关界面参数
	public static int lockStartX,lockStartY;        //第一个锁的起点坐标
	public static int unitLock = 100;               //锁的尺寸
	public static int unitNumber = 65;              //数字的尺寸
	public static int unitStar = 30;                //星星的尺寸
	public static int unitArrow = 56;               //左右的尺寸
	public static int unitPoint = 36;               //圆点的尺寸
	public static int jiange = 25;                  //锁之间的间距
	
	public static int arrowStartY =630;
	public static int rightArrowStartX = 0;
	public static int pointStartX = 0;
	public static int pointJianGe = 0;
	
	//获取当前关卡的最佳成绩
	public static int getBest(){
		int p = currLevel - (currPage - 1) * 9 - 1;
		Level lv = lvs.get(p);
		return lv.getBest();
	}
}
